package com.example.report

import com.example.lib_base.Res
import com.example.lib_http.Const
import kotlinx.coroutines.flow.Flow
import okhttp3.RequestBody
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST

interface ApiService {
    @GET(Const.URL_GET_REPORT)
    fun getReports(): Flow<Res<ReportEntity>>

    @POST(Const.URL_ADD_REPORT)
    fun addReport(@Body body: RequestBody): Flow<Res<Any>>
}